#include "mainwindow.h"

#include <QHBoxLayout>
#include <QLabel>

MainWindow::MainWindow(QWidget *parent) :
    DMainWindow(parent)
{
    this->setFixedSize(800, 600);

    this->setWindowTitle("DTK Widget Template");
    this->setWindowIcon(QIcon::fromTheme("dtkwidget-template"));

    initUI();
}

MainWindow::~MainWindow() 
{
    
}

void MainWindow::initUI()
{
    // Set the central widget
    QWidget *centralWidget = new QWidget(this);
    QHBoxLayout *centralLayout = new QHBoxLayout(centralWidget);
    centralLayout->setContentsMargins(0, 0, 0, 0);


    QLabel *label = new QLabel("DTK Widget Template", centralWidget);
    label->setAlignment(Qt::AlignCenter);
    centralLayout->addWidget(label);

    this->setCentralWidget(centralWidget);
}
